package phasebook.client.msgs;

import java.io.Serializable;

public class UserProfileInfo implements Serializable{
	private static final long serialVersionUID = 1082408375805711167L;
	
	private long userId;
	private String name;
	private String username;
	private String password;
	private String email;
	private double balance;
	private UserInfo userInfo;
	private long bankAccountId;
	
	public UserProfileInfo(){
		this.userInfo = new UserInfo();
	}
	
	public UserProfileInfo(long userId, String name, String username,
			String password, String email, double balance, long bankAccountId) {
		this.userId = userId;
		this.name = name;
		this.username = username;
		this.password = password;
		this.email = email;
		this.balance = balance;
		this.userInfo = new UserInfo(userId, username);
		this.bankAccountId = bankAccountId;
		
	}

	public long getUserId() {
		return userId;
	}
	
	public void setUserId(long userId) {
		this.userId = userId;
		this.userInfo.setUserId(userId);
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getUsername() {
		return username;
	}
	
	public void setUsername(String username) {
		this.username = username;
		this.userInfo.setName(username);
	}
	
	public String getPassword() {
		return password;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getEmail() {
		return email;
	}
	
	public void setEmail(String email) {
		this.email = email;
	}
	
	public double getBalance() {
		return balance;
	}
	
	public void setBalance(double balance) {
		this.balance = balance;
	}

	public UserInfo getUserInfo() {
		return userInfo;
	}

	public long getBankAccountId() {
		return bankAccountId;
	}

	public void setBankAccountId(long bankAccountId) {
		this.bankAccountId = bankAccountId;
	}
	
}
